package cn.wolfcode.luowowo.article.util;

import lombok.Getter;
import lombok.Setter;

import java.util.HashMap;
@Getter
@Setter
public class TravelCondition {
    public final static HashMap<Integer,TravelCondition> dayType = new HashMap<>();
    public final static HashMap<Integer,TravelCondition> travelTimeType = new HashMap<>();
    public final static HashMap<Integer,TravelCondition> perExpendType = new HashMap<>();
    static {
        dayType.put(-1,null);
        dayType.put(1,new TravelCondition(0,3));
        dayType.put(2,new TravelCondition(4,7));
        dayType.put(3,new TravelCondition(8,14));
        dayType.put(4,new TravelCondition(15,Integer.MAX_VALUE));
    }
    static {
        travelTimeType.put(-1,new TravelCondition(-1,Integer.MAX_VALUE));
        travelTimeType.put(1,new TravelCondition(1,999));
        travelTimeType.put(2,new TravelCondition(1000,6000));
        travelTimeType.put(3,new TravelCondition(6001,20000));
        travelTimeType.put(4,new TravelCondition(20001,Integer.MAX_VALUE));
    }
    static {
        perExpendType.put(-1,null);

    }
    private int min;
    private int max;

    private TravelCondition(int min,int max){
        this.min=min;
        this.max=max;
    }
}
